﻿<div class="usuarios form">
<?php echo $form->create('Usuario');?>
	<fieldset>
 		<legend><?php __('Editar usuário');?></legend>
	<?php
		echo $form->hidden('Usuario.id');
	?>
	<div class="input text">
	<?php
		echo $form->label(__('Nome completo', true));
		echo $form->text('Usuario.nome_completo');
	?>
	</div>
	<div class="input text">
	<?php
		echo $form->label(__('Email', true));
		echo $form->text('Usuario.email');
	?>
	</div>
	<div class="input text">
	<?php
		echo $form->error('Usuario.senha_clear');
		echo $form->label(__('Senha atual', true));
		echo $form->password('Usuario.senha_atual', array('value' => ''));
	?>
	</div>
	<div class="input text">
	<?php
		echo $form->label(__('Nova senha', true));
		echo $form->password('Usuario.senha_clear', array('value' => ''));
	?>
	</div>
	<div class="input text">
	<?php
		echo $form->label(__('Repita a senha', true));
		echo $form->password('Usuario.senha2', array('value' => ''));
	?>
	</div>
	</fieldset>
<div class="submit">
	<?php
		echo $form->submit(__('Enviar', true), array('div' => false, 'name' => 'submit'));
		echo $form->submit(__('Cancelar', true), array('div' => false, 'name' => 'cancel'));
	?>
<?php echo $form->end();?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Apagar', true), array('action' => 'delete', $form->value('Usuario.id')), null, sprintf(__('Você tem certeza que deseja apagar o registro # %s?', true), $form->value('Usuario.id'))); ?></li>
		<li><?php echo $html->link(__('Listar usuários', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('Listar sites', true), array('controller' => 'sites', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Novo site', true), array('controller' => 'sites', 'action' => 'add')); ?> </li>
	</ul>
</div>
